from flask import Flask
from dotenv import load_dotenv  # 导入加载环境变量的函数
import os

load_dotenv()  # 加载环境变量

app = Flask(__name__)

from routes.doc_pdf_bp import doc_pdf_transform_bp
from routes.pdf_png import pdf_png_bp
# 注册蓝图
#baseURL/api/doc/transform
#doc转pdf
app.register_blueprint(doc_pdf_transform_bp)
#baseURL/api/pdf/transform
#pdf转png
app.register_blueprint(pdf_png_bp)

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=9093, debug=True)